//
//  UITextFieldExt.swift
//  test-ios
//
//  Created by wyz5204 on 2023/6/6.
//

import Foundation
import UIKit


extension UITextField {
    func setPlaceholder(_ placeholder : String , fontSize : UIFont = UIFont.systemFont(ofSize: 15), color : UIColor = UIColor.searchPlaceholder){
        self.attributedPlaceholder = NSAttributedString(string: placeholder,attributes: [.font: fontSize, .foregroundColor: color])
    }
}
